home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / progs / editor / frexxed / fpl / center.fpl.readme < prev    next >
Text File  |  1995-07-18  |  2KB  |  53 lines

  1. ############################################
  2. File: Center.FPL
  3. Author: Daniel Stenberg
  4. Email: dast@sth.frontec.se, FidoNet 2:201/328
  5. Short description: Horizontally centers a line or block
  6. Version: 1.0
  7. Date: 22.4.94
  8. Local settings: "wall_left", "wall_right"
  9. Global settings:
  10. Keysequence: "Amiga -"
  11. Type: Function
  12. Prereq:
  13. ############################################
  14.  
  15. When editing text files I often feel the need for centering certain lines for
  16. layout reasons. This file brings two such a functions. One for a single line
  17. and one for the marked block. To know how to center a line, two local settings
  18. are created, "wall_left" and "wall_right", that sets the margins to use.
  19.  
  20. The default values for the settins are 79 for wall_right and 0 for wall_left.
  21. The function "CenterLine(0);" is put on the key sequence "amiga -" when the
  22. block isn't marked, and the "CenterBlock();" is on the same keysequence when
  23. there exist a marked block.
  24.  
  25. NAME    CenterLine - Horizontally centers a text line.
  26.  
  27. SYNOPSIS
  28.     Failure CenterLine( Line );
  29.  
  30.     int CenterLine ( int );
  31.  
  32. FUNCTION
  33.     The specified line number (or current if 0 (zero) is specified) is
  34.     centered according to the values set in "wall_left" and "wall_right".
  35.  
  36. INPUTS
  37.     Line -    Which line that should be centered, or 0 (zero) for the
  38.         current.
  39.  
  40. RESULT
  41.     0 if everything is OK, otherwise non-zero.
  42.  
  43. NAME    CenterBlock - Horizontally centers the marked block.
  44.  
  45. SYNOPSIS
  46.     void CenterBlock( void );
  47.  
  48.     CenterLine ( );
  49.  
  50. FUNCTION
  51.     The marked block is centered according to the values set in
  52.     "wall_left" and "wall_right".
  53.